package org.example.rowing.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.rowing.domain.Race;
import org.example.rowing.vo.RaceVO;

import java.util.List;

@Mapper
public interface RaceMapper {
    List<Race> selectAllRaces();

    List<Race> selectRaceByConditions(Race race);

    Boolean insertRace(Race race);

    Boolean updateRace(Race race);

    Boolean deleteRace(Long id);

    Boolean insertRaces(List<Race> athleteList);

    List<RaceVO> selectRaceVOByBoatType(String boatType);

    List<RaceVO> selectRaceVOByCondition(RaceVO raceVO);
}
